package com.xinruke.hostels.common.util;


import java.util.UUID;

/**
 * @ClassName UUIDUtil
 * @CreateDate 2019/6/16
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription UUID工具类
 */
public class UUIDUtil {

    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "").toLowerCase();
    }

    public static String[] getUUID(int size) {
        if (size <= 0) {
            return null;
        }

        String[] str = new String[size];
        for (int i = 0; i < str.length; i++) {
            str[i] = getUUID();
        }
        return str;
    }


}
